#pragma once

#include <iostream>
using std::cout;
using std::endl;

class A {

private:
	int _a;

public:
	A(int a = 10)
		:_a(a)
	{
		cout << "A()" << endl;
	}
	//~A()
	//{
	//	cout << "~A()" << endl;
	//}
};

class B {

public:
	~B()
	{
		cout << "~B()" << endl;
	}
};

class C {

public:
	~C()
	{
		cout << "~C()" << endl;
	}
};

class D {

public:
	~D()
	{
		cout << "~D()" << endl;
	}
};
